package com.mytijian.code.service.helper;

import org.springframework.stereotype.Component;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Created by shjh on 2017/9/27.
 */
@Component
public class ExecutorServiceHelper {
	
    private ExecutorService executorService = Executors.newFixedThreadPool(20);
    
    public void submit(Runnable runable) {
    	executorService.submit(runable);
    }
 
}
